﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using DotNetX;

namespace RPGX.Server
{
    public static class Configuration
    {
        #region Public Methods

        public static string GetCurrentServerName()
        {
            string s = ConfigurationManager.AppSettings["serverName"].ToString();

            return s;
        }

        public static int GetServerHealthInterval()
        {
            int s = ConfigurationManager.AppSettings["serverHealthInterval"].ToInt32OrDefault(-1);

            return s;
        }

        public static int GetActionMessageInterval()
        {
            int s = ConfigurationManager.AppSettings["actionMessageInterval"].ToInt32OrDefault(-1);

            return s;
        }

        #endregion
    }
}
